.gomoku-game-container {
  padding: 16px;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
  font-family: 'Arial', sans-serif;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-title {
  font-size: 18px;
  font-weight: bold;
  color: #6366f1;
}

.user-info {
  font-size: 14px;
  color: #1f2937;
}

.game-status {
  font-size: 14px;
  font-weight: bold;
  color: #6366f1;
}

.game-tip {
  font-size: 14px;
  color: #6b7280;
}

.game-info {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 15px;
  background-color: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 14px;
  color: #666;
}

.info-value {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.game-area {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(99, 102, 241, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-title {
  font-size: 18px;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.game-title i {
  margin-right: 8px;
}

.player-list {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin-bottom: 16px;
  gap: 10px;
}

.player-card {
  flex: 1;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.player-card.current {
  border: 2px solid #6366f1;
  background: #f0f4ff;
}

.piece-type {
  margin-top: 4px;
  font-size: 16px;
}

.game-board {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.game-canvas {
  width: 360px;
  height: 360px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.1);
}

.control-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.restart-btn {
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
  color: white;
}

.undo-btn {
  background-color: #ffc107;
  color: #333;
}

.undo-btn:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ready-btn {
  background: #f3f4f6;
  color: #1f2937;
}

.back-btn {
  background: #fee2e2;
  color: #dc2626;
}

.restart-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  width: 300px;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.modal-message {
  font-size: 18px;
  margin-bottom: 25px;
  color: #666;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.new-game-btn {
  background-color: #4caf50;
  color: white;
}

.new-game-btn:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
  background-color: #f44336;
  color: white;
}

.close-btn:hover {
  background-color: #e53935;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}